/*
 * Copyright 2011 David de Mingo
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package org.shalma.model;

/**
 * A name is an informal way of identifying an {@link Entity}.
 * <p>
 * The simplest identifier for an Entity is a name, a sequence of characters
 * that usually identifies an entity. The problem is that names are not
 * guaranteed to refer to a specific entity in all circumstances
 */
@Id("e20DQ0EeNOkTgXSPS2xB9Q")
public abstract class NamedEntity extends Entity {

	public static final String NAME = "niAGBLzpu1Rb9w36qJWywA";

	@Id(NAME)
	private String name;

	public final String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
